<%-- 
    Document   : index
    Created on : 31/03/2011, 10:09:02 AM
    Author     : Jhon
--%>

<%@page import="vo.VOUser"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="HTML.*"%>
<% HtmlBody b = new HtmlBody("Inicio");
   HtmlContent c = new HtmlContent("Inicio");

   HtmlSideBar s;
    if(session.getAttribute("USER")==null){
   s = new HtmlSideBar(false);
   String mal = String.valueOf(session.getAttribute("ERROR"));
   if(mal!=null || mal!="" || !mal.equals("null"))
       s.setMal(mal);
   s.update(false);
   }else{
    s = new HtmlSideBar(true);
    b = new HtmlBody("Inicio","");
   VOUser a = (VOUser) session.getAttribute("USER");
   if(a.isIsAdmin()){
   b.addUsuario(a.getHandle(), "Administrator");
   }else{
   b.addUsuario(a.getHandle(), "User");
   }
   }
   if(session.getAttribute("ERROR")!=null)
   session.removeAttribute("ERROR");
    b.addContent(c.getContent());
    b.addSideBar(s.getBar());
    %>

    <%=b.getHtml()%>